﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script>
			$(document).ready(function() {
				$("#sign_in_fram").modal("toggle");
				$("#sign_in_btn").click(function(){
					$("#sign_up_fram").modal("toggle");
					$("#sign_in_fram").modal("toggle");
				});
				$("#sign_up_btn").click(function(){
					$("#sign_in_fram").modal("toggle");
					$("#sign_up_fram").modal("toggle");
				});
			});
    </script>
    <style>
        .modal-dialog {
            width: 35%;
        }
    </style>
    <title>多模态框切换</title>
</head>
<body>

    <div class="modal fade" tabindex="-1" role="dialog" id="sign_in_fram">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <!--						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
                    <h4 class="modal-title">多模态框切换</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-xs-offset-4 col-xs-4"><h2 class="text-center">登入</h2></div>
                    </div>
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label for="inputEmail" class="col-xs-2 control-label">邮箱</label>
                            <div class="col-xs-10">
                                <input type="email" class="form-control" id="inputEmail" placeholder="Email">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword" class="col-xs-2 control-label">密码</label>
                            <div class="col-xs-10">
                                <input type="password" class="form-control" id="inputPassword" placeholder="Password">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-offset-2 col-xs-10">
                                <div class="checkbox">
                                    <label>
                                        <input class="pull-left" type="checkbox" />记住密码
                                    </label>
                                    <a class="pull-right" id="forgetPassword">忘记密码？</a>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-offset-2 col-xs-10">
                                <button type="button" class="btn btn-default" id="sign_in_cmt">登入</button>
                                <button type="button" class="btn btn-default" id="sign_up_btn">注册</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <footer class="footer">power by StarFish-余恒|yuhengsun@live.com</footer>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" tabindex="-1" role="dialog" id="sign_up_fram">
        <div class="modal-dialog" style="width: 30%;">
            <div class="modal-content">
                <div class="modal-header">
                    <!--						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    -->
                    <h4 class="modal-title">多模态框切换</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-xs-offset-4 col-xs-4"><h2 class="text-center">注册</h2></div>
                    </div>
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label for="inputEmail" class="col-xs-2 control-label">邮箱</label>
                            <div class="col-xs-10">
                                <input type="email" class="form-control" id="inputEmail" placeholder="Email">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword" class="col-xs-2 control-label">密码</label>
                            <div class="col-xs-10">
                                <input type="password" class="form-control" id="inputPassword" placeholder="Password">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="reInputPassword" class="col-xs-2 control-label">重复密码</label>
                            <div class="col-xs-10">
                                <input type="password" class="form-control" id="reInputPassword" placeholder="Password">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputInviteCode" class="col-xs-2 control-label">邀请码</label>
                            <div class="col-xs-10">
                                <input type="text" class="form-control" id="inputInviteCode" placeholder="inviteCode">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-offset-2 col-xs-10">
                                <button type="button" class="btn btn-default" id="sign_up_cmt">注册</button>
                                <button type="button" class="btn btn-default" id="sign_in_btn">登入</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <footer class="footer">power by StarFish-余恒|yuhengsun@live.com</footer>
                </div>
            </div>
        </div>
    </div>

</body>
</html>